<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>VUE模板语法-插值-表达式</title>
        <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="app">
            <p>{{1 == 1}}</p>
            <p>{{ok ? '我是TRUE' : '我是FALSE'}}</p>
            <p>{{1 == 2 ? '我是TRUE' : '我是FALSE'}}</p>
            <p>{{'opple is my best phone'.split(' ').reverse().join(' ')}}</p>
            <p v-bind:id="'list-' + id">{{id}}</p>
        </div>
    </body>
    <script type="text/javascript">
        var vueObj = new Vue({
            el: '#app',
            data: {
                id: 'app-p-first',
                ok: true
            }
        });
    </script>
</html>